﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using VehicleMaintenance.Comm;

namespace VehicleMaintenance.Models
{
	public class Staff
	{
		[Key]
        public int StaffID { get; set; }

		[Display(Name = "员工编码")]
		[Required(ErrorMessage = "员工编码必须填写")]
		public string Code { get; set; }

		[Display(Name = "员工姓名")]
		[Required(ErrorMessage = "员工姓名必须填写")]
		public string Name { get; set; }

		[Display(Name = "性别")]
		[ControlTypeAttribute(Type = "ComboBox", Values = new string[] { "男", "女" })]
		public string Gender { get; set; }

		[Display(Name = "职务")]
		public string Post { get; set; }

		[Display(Name = "电话")]
		public string Mobile { get; set; }

		[Display(Name = "住址")]
		public string Address { get; set; }

		[Display(Name = "备注")]
		public string Remark { get; set; }

	}
}
